package com.jfs.qy.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description 线程池配置
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/11/4
 */
@Data
@ConfigurationProperties(prefix = "task.executor")
public class ExecutorProperties {
    private final static String THREAD_NAME_PREFIX = "TASK-EXECUTOR-";

    /**
     * 线程池维核心线程数量
     */
    private int corePoolSize = 10;
    /**
     * 线程后缀名
     */
    private String threadNamePrefix = THREAD_NAME_PREFIX;

    /**
     * 心跳任务执行周期 默认5s
     */
    private Integer heartBeatInterval = 20000;
    /**
     * 系统详情任务执行周期 默认5s
     */
    private Integer systemInfoInterval = 10000;
    /**
     * 执行查询告警间隔时间
     */
    private Integer alarmInterval = 2000;
    /**
     * 查询系统设备详情执行周期
     */
    private Integer systemIpcListInfoInterval = 10000;

    /**
     * 处理告警事件线程间隔时间
     */
    private Integer processAlarmInterval = 2000;
}
